package com.sun.hunk.struts.form;

import com.sun.hunk.hibernate.domain.Category;
import com.sun.hunk.hibernate.domain.impl.DomainFactory;
import com.sun.hunk.struts.HunkActionForm;

/**
 *
 * @author sunil
 */
public class CategoryForm extends HunkActionForm {

    
    private Category Category;
    

    public CategoryForm() {        
        Category = DomainFactory.getCategory();
    }

    public String getDescription() {
        return Category.getDescription();
    }

    public void setDescription(String desc) {
        Category.setDescription(desc);
    }

    public Long getId() {
        return Category.getId();
    }

    public void setId(Long id) {
        if(id != null && id > 0){
            Category.setId(id);
        }
    }
   
    public Category getCategory() {
        return Category;
    }

    public void setCategory(Category Category) {
        this.Category = Category;
    }

}
